package ch03.demo;

import ch03.demo.dao2.Buyer;
import ch03.demo.dao2.impl.IntermediaryImpl;
import ch03.demo.dao2.impl.RealBuyer;
import org.apache.log4j.Logger;

public class Test2 {
    public static void main(String[] args) {
        Logger logger=Logger.getLogger(Test2.class);
        Buyer buyer=new IntermediaryImpl(new RealBuyer());
        String result=buyer.havealook();
        logger.debug(result);

    }
}
